const GoldPrice = 'GoldPrice'//金价

const BenchmarkInterestRate = 'BenchmarkInterestRate'//基准利率

const NationalSecurities = 'NationalSecurities'//国债

const Stock = 'Stock'//股票

const Tariff = 'Tariff'//关税

const War = 'War'//战争

export const Data = [{
    id: BenchmarkInterestRate,
    name: '基准利率',
    default: 100,
    base: 100,
    effects: [[GoldPrice, -0.1], [NationalSecurities, -0.1], [Stock, -0.1]]
},
{
    id: GoldPrice,
    name: '金价',
    default: 100,
    base: 100,
    effects: [[BenchmarkInterestRate, 0.1], [NationalSecurities, -0.1], [Stock, -0.1]]
},

{
    id: NationalSecurities,
    name: '国债',
    default: 100,
    base: 100,
    effects: []
},
{
    id: Stock,
    name: '股票',
    default: 100,
    base: 100,
    effects: [[BenchmarkInterestRate, 0.1]]
},
{
    id: Tariff,
    name: '关税',
    default: 100,
    base: 100,
    effects: [[Stock, -0.2], [NationalSecurities, -0.1, BenchmarkInterestRate, -0.1]]
},
{
    id: War,
    name: '战争',
    default: 0,
    base: 100,
    effects: [

        [GoldPrice, 0.3],
        [NationalSecurities, -0.3],
        [Stock, -0.3]

    ]
}]


export const Delta = {
}

export const DataMap = Data.reduce((pv, cv) => {
    pv[cv.id] = cv
    return pv
}, {})


export const Config = {
    step: 10,
    stepRate: 1
}

